package com.jianbing.lakk.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jianbing.lakk.mapper.LakkUserprogressMapper;
import com.jianbing.lakk.domain.LakkUserprogress;
import com.jianbing.lakk.service.ILakkUserprogressService;

/**
 * 用户进度Service业务层处理
 * 
 * @author windbless
 * @date 2024-06-26
 */
@Service
public class LakkUserprogressServiceImpl implements ILakkUserprogressService 
{
    @Autowired
    private LakkUserprogressMapper lakkUserprogressMapper;

    /**
     * 查询用户进度
     * 
     * @param id 用户进度主键
     * @return 用户进度
     */
    @Override
    public LakkUserprogress selectLakkUserprogressById(Long id)
    {
        return lakkUserprogressMapper.selectLakkUserprogressById(id);
    }

    /**
     * 查询用户进度列表
     * 
     * @param lakkUserprogress 用户进度
     * @return 用户进度
     */
    @Override
    public List<LakkUserprogress> selectLakkUserprogressList(LakkUserprogress lakkUserprogress)
    {
        return lakkUserprogressMapper.selectLakkUserprogressList(lakkUserprogress);
    }

    /**
     * 新增用户进度
     * 
     * @param lakkUserprogress 用户进度
     * @return 结果
     */
    @Override
    public int insertLakkUserprogress(LakkUserprogress lakkUserprogress)
    {
        return lakkUserprogressMapper.insertLakkUserprogress(lakkUserprogress);
    }

    /**
     * 修改用户进度
     * 
     * @param lakkUserprogress 用户进度
     * @return 结果
     */
    @Override
    public int updateLakkUserprogress(LakkUserprogress lakkUserprogress)
    {
        return lakkUserprogressMapper.updateLakkUserprogress(lakkUserprogress);
    }

    /**
     * 批量删除用户进度
     * 
     * @param ids 需要删除的用户进度主键
     * @return 结果
     */
    @Override
    public int deleteLakkUserprogressByIds(Long[] ids)
    {
        return lakkUserprogressMapper.deleteLakkUserprogressByIds(ids);
    }

    /**
     * 删除用户进度信息
     * 
     * @param id 用户进度主键
     * @return 结果
     */
    @Override
    public int deleteLakkUserprogressById(Long id)
    {
        return lakkUserprogressMapper.deleteLakkUserprogressById(id);
    }
}
